'''
Created on 22 mai 2009

@author: theo
'''

class FileLineReader:
    '''
    classdocs
    '''
    def __init__(self, document):
        '''
        Constructor
        '''
        self.document = document
        self.textfile = None
        
    def open(self):
        self.textfile = open(self.document)
        
    def close(self):
        self.textfile.close()
        
    def readNextLine(self):
        line = self.textfile.readline()
        if line == '':
            return None
        return line
    
    def jumpToBegining(self):
        self.textfile.seek(0)
        